<template>
    <div>
        <el-button v-if="['0', '1', undefined].includes(pageType)" plain @click="handle(1)"> 保存为草稿</el-button>
        <el-button plain @click="handle(2)">预览</el-button>
        <el-button type="primary" @click="handle(3)">群发</el-button>
    </div>
</template>

<script setup lang="ts">
import bus from '@/utils/bus';
import { useRoute } from 'vue-router';
const route = useRoute();
const pageType = route.query.imgTextType;
const handle = (type: any) => {
    bus.emit('draftboxSubmit', type);
};
</script>

<style scoped lang="scss">
.footer_btn {
    margin-top: 16px;
    padding: 14px 24px;
    background: #fff;
    border: 1px solid #eaeaea;
    text-align: right;
}
</style>
